package com.lixixi.tingshu.common.anno;

import jakarta.validation.groups.Default;
import org.springframework.aot.hint.annotation.Reflective;
import org.springframework.core.annotation.AliasFor;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Reflective
public @interface SetCache {
	@AliasFor("need")
	boolean value() default true;

	@AliasFor("value")
	boolean need() default true;

	String prefix() default "";
}
